/**
 * 分页查询患者挂号预约列表
 *
 * @param data
 * @returns {*}
 */
function pageList(data) {
    return requests({
        url: '/admin/sysReservation/pageList',
        method: 'post',
        data: data
    })
}

/**
 * 查询患者挂号预约详细
 * @param id
 * @returns {*}
 */
function detail(id) {
    return requests({
        url: '/admin/sysReservation/query/' + id,
        method: 'get'
    })
}

/**
 * 新增患者挂号预约
 *
 * @param data
 * @returns {*}
 */
function add(data) {
    return requests({
        url: '/admin/sysReservation/add',
        method: 'post',
        data: data
    })
}

/**
 * 修改患者挂号预约
 *
 * @param data
 * @returns {*}
 */
function update(data) {
    return requests({
        url: '/admin/sysReservation/update',
        method: 'post',
        data: data
    })
}

/**
 *  删除患者挂号预约
 * @param id
 * @returns {*}
 */
function del(id) {
    return requests({
        url: '/admin/sysReservation/delete/' + id,
        method: 'delete'
    })
}

/**
 * 导出患者挂号预约
 *
 * @param query
 * @returns {*}
 */
function exportData(data) {
    return requests({
        url: '/admin/sysReservation/export',
        method: 'post',
        data: data
    })
}

function getDoctorList(data) {
    return requests({
        url: '/admin/sysDoctor/pageList',
        method: 'post',
        data: data
    })
}